﻿using Adnc.Infra.Entities;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace WYT.Pro.Repository.Entites
{
    /// <summary>
    /// 商品评论回复
    /// </summary>
    [Table("pro_ReviewReply"), Comment("商品评论回复"), Index(nameof(ReviewId))]
    public class GoodsReviewReply : EfEntity
    {
        /// <summary>
        /// 用户ID
        /// </summary>
        [Comment("用户ID")]
        public long UserId { get; set; }

        /// <summary>
        /// 评论ID
        /// </summary>
        [Comment("评论ID")]
        public long ReviewId { get; set; }

        /// <summary>
        /// 回复内容
        /// </summary>
        [Comment("回复内容"),MaxLength(2000)]
        public String Content { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [Comment("创建时间")]
        public DateTime CreateTime { get; set; }
    }
}
